export const constantRouter = [
    {
        path: '/login',
        name: 'Login',
        component: () => import('@/views/login/index.vue'),
    },
    {
        path: '/',
        redirect: '/dashboard',
        name: 'Home',
        hidden: true,
        component: () => import('@/views/home/index.vue'),
        children: [
            {
                path: '/dashboard',
                name: 'Dashboard',
                component: () => import('../views/dashboard/index.vue'),
            },
        ],
    },
    { path: '/404', component: () => import('@/views/404/index.vue') },
    { path: '/:catchAll(.*)', redirect: '/404' },
]
